package com.woniuxy.controller.form;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Data
public class RepairForm {

    /**
     * 报修编号
     */
    @TableField("repairNum")
    private String repairnum;

    /**
     * 报修时间
     */
//    @TableField("repairDate")
    @TableField(value = "repairDate",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime repairdate;

    /**
     * 报修项目
     */
    @TableField("repairType")
    private String repairtype;

    /**
     * 维修区域
     */
    @TableField("repairArea")
    private String repairarea;

    /**
     * 维修内容
     */
    @TableField("repairContent")
    @Size(max = 305,min = 1)
    private String repaircontent;


    /**
     * 承接单位
     */
    @TableField("serviceCompany")
    private String servicecompany;

    /**
     * 受理人
     */
    @TableField("acceptUser")
    private String acceptuser;

    /**
     * 响应时间
     */
    @TableField("responseTime")
    private LocalDateTime responsetime;

    /**
     * 维修状态
     */
    @TableField("repairState")
    private Integer repairstate;

}
